1 '** OISAC 2 *** MASTER-MIND ** 10 CLEAR:CLS:PRINTTAB(10)"MASTER MIND":INPUT"COMBIEN DE CHIFFRE (1 A 10) ";N:IFN<1OR N>10THEN10ELSEDIMS(N),P(N),S1(N):FORI=1TON:S(I)=INT(RAN#*10):NEXT 20 PRINT"PROPOSITION :";:INPUT@N;$:C=C+1:FORI=1TON:P(I)=VAL(MID$($,I,1)):S1(I)=S(I):NEXT:P=0:FORI=1TON:IFS1(I)=P(I)THENP=P+1:S1(I)=99:P(I)=88 25 NEXT 30 IFP=N THENPRINT"GAGNE! EN"C"COUPS":GOTO10 40 M=0:FORI=1TON:FORJ=1TON:IFS1(I)=P(J)THENM=M+1:S1(I)=99:P(J)=88:J=N 45 NEXTJ,I 50 PRINT"BONNE PLACE :"P;TAB(0)"A REPLACER :"M:CLS:GOTO20